﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCAddUserRole.ascx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UCAddUserRole" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 153px;
    }
    .style3
    {
        width: 160px;
    }
    .style4
    {
        width: 116px;
    }
</style>
<table class="style1">
    <tr>
        <td class="style4">
<asp:Label ID="Label1" runat="server" Text="Role Name"></asp:Label>
        </td>
        <td class="style2">
            <asp:TextBox ID="txtRole" runat="server" style="margin-left: 1px"></asp:TextBox>
        </td>
        <td class="style3">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtRole" Display="Dynamic" 
                ErrorMessage="Please select a role."></asp:RequiredFieldValidator>
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4">
            Role Type</td>
        <td class="style2">
            <asp:DropDownList ID="ddlRoleType" runat="server">
            </asp:DropDownList>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4">
            Role Permissions</td>
        <td class="style2">
            <asp:Panel ID="Panel1" runat="server">
                <asp:CheckBox ID="ChkEnquiry" runat="server" Text="Enquiry" />
                <br />
                <asp:CheckBox ID="chkCreate" runat="server" Text="Create" />
                <br />
                <asp:CheckBox ID="chkDelete" runat="server" Text="Delete" />
                <br />
                <asp:CheckBox ID="chkUpdate" runat="server" Text="Update" />
            </asp:Panel>
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style4">
            &nbsp;</td>
        <td class="style2">
<asp:Button ID="btnCreateRole" runat="server" onclick="btnCreateRole_Click" 
    Text="Create Role" style="height: 26px" />
        </td>
        <td class="style3">
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>

